package com.ticket.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel(description = "充值对象")
public class RechargeParamVo {
    @NotNull(message = "价格不可以为空")
    @ApiModelProperty(value = "充值金额")
    @DecimalMin(value = "0.01", message = "价格不能低于0.01")
    private BigDecimal amount;

    @NotNull(message = "规则编码不可以为空")
    @ApiModelProperty(value = "规则编码")
    private Long ruleId;

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

}
